/*
 * usea, Copyright 2011 André König
 * Hochschule Bremen - University of Applied Sciences - All Rights Reserved.
 *
 * $Id: Article.java 16 2011-07-05 14:09:48Z andre.koenig@gmail.com $
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * Contact:
 *     André König: akoenig@stud.hs-bremen.de
 * 
 * Web:
 *     http://tutorium-prog2.tumblr.com
 * 
 */
package de.hochschule.bremen.usea.commons.vo;

import java.io.Serializable;

public class Article implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1275183343835386847L;

	private int id = 0;
	
	private String name = null;
	
	private int bestand = 0;
	
	private double preis = 0.0f;

	public Article(int id, String name, int bestand, double price) {
		this.id = id;
		this.name = name;
		this.bestand = bestand;
		this.preis = price;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setBestand(int bestand) {
		this.bestand = bestand;
	}

	public int getBestand() {
		return bestand;
	}

	public void setPreis(double preis) {
		this.preis = preis;
	}

	public double getPreis() {
		return preis;
	}

	@Override
	public String toString() {
		return "Article [id=" + id + ", name=" + name + ", bestand=" + bestand
				+ ", preis=" + preis + "]";
	}
}
